package com.cb.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cb.admin.domain.UserRoleRef;
import com.cb.admin.mapper.IUserRoleRefMapper;
import com.cb.admin.service.IUserRoleRefService;

@Service
public class UserRoleRefServiceImpl implements IUserRoleRefService {
	
	@Autowired
	private IUserRoleRefMapper userRoleRefMapper;

	@Override
	public List<UserRoleRef> queryId(int userId) {
		// TODO Auto-generated method stub
		return userRoleRefMapper.queryId(userId);
	}

	@Override
	public void insert(UserRoleRef userRoleRef) {
		// TODO Auto-generated method stub
		userRoleRefMapper.insert(userRoleRef);
	}

	@Override
	public void deleteById(int userId) {
		// TODO Auto-generated method stub
		userRoleRefMapper.deleteById(userId);
	}
}